<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ taglib prefix="pg" uri="http://jsptags.com/tags/navigation/pager"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>  
<%@ page language="java" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>留言给我们 - 南充兼职网,南充唯一一家本土化兼职人才招聘网站</title>
    <link href="<%=basePath %>web/index_css.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath %>web/list_css.css" rel="stylesheet" type="text/css" />
    <style type="text/css" media="all">
	 @import "<%=basePath %>editor/css/style.css";
    </style>
    <script language="javascript">
		function fsubmit(obj){
		  var pattern =/^[a-zA-Z0-9_\-]{1,}@[a-zA-Z0-9_\-]{1,}\.[a-zA-Z0-9_\-.]{1,}$/;
		  if (obj.uname.value==""){alert("对不起,你还没有输入你的姓名！");obj.uname.focus();return false;} 
          if (obj.telphone.value==""){alert("对不起,你还没有输入你的联系电话！");obj.telphone.focus();return false;} 
          if (obj.email.value==""){alert("对不起,请输入你的邮箱地址！");obj.email.focus();return false;}
          if (!pattern.exec(obj.email.value)) {alert("请填写正确的邮箱地址!");obj.email.focus();return false;}  
          document.getElementById('showhtml').value = me.getCont();
		  obj.submit();
		  
		}
	</script>
  </head>
<body>
<c:if test="${!empty msg}">
       <script type="text/javascript">
         alert("${msg}");  
       </script>
      <c:remove var="msg" scope="session"/>
     </c:if>
<div class="head"><iframe src="<%=basePath %>web/head.html" width="1000px"  height="152px"  frameborder="0" scrolling="no" ></iframe></div>
<div class="main">
  <div class="seat">
  <span class="span_1"><a href="<%=basePath %>index.html">返回首页</a></span>
  <strong>当前位置：</strong><span class="a_1"><a href="<%=basePath %>index.html">首页</a>><a href="<%=basePath %>messages.html">留言空间</a></span>
  </div>
  <div class="left">
     <div class="list_biaoti"><h4>留言空间 - 留言给我们吧...</h4></div>
     <div class="article_xx">
      作者：http://www.ncjzw.net&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      说明：留言时请遵守相关的法律法规,不得发表与道德、法律相违背的言论。
     </div>
       <div align="left">
            <table width="100%" border="0" cellspacing="0"
					cellpadding="0" style="font-size: 12px;">
					 <tr><td align="right">
				    【 <pg:pager url="${basePath}messages.html" items="${pm.total}"
				export="currentPageNumber=pageNumber" maxPageItems="5"
				maxIndexPages="5">
				<pg:first>
					<a href="${pageUrl}">首页</a>
				</pg:first>  
	                                     [第${currentPageNumber}页]/[共${pm.total}条记录]
	                                    <pg:prev>
					<a href="${pageUrl }">上一页</a>
				</pg:prev>
				<pg:pages>
					<c:choose>
						<c:when test="${currentPageNumber eq pageNumber}">
							<font color="red">${pageNumber }</font>
						</c:when>
						<c:otherwise>
							<a href="${pageUrl }">${pageNumber }</a>
						</c:otherwise>
					</c:choose>
				</pg:pages>
				<pg:next>
					<a href="${pageUrl }">下一页</a>
				</pg:next>
				<pg:last>
					<a href="${pageUrl }">尾页</a>
				</pg:last>
			</pg:pager> 】
			   </td></tr>		
				</table><hr />
	                <c:if test="${!empty pm.datas}"> 
					<c:forEach items="${pm.datas}" var="message">
	                 <table width="720" border="0" cellspacing="0"
					cellpadding="0" style="margin-left: 20px ;border: 1px solid #FCF7E1;">
					   <tr bgcolor="#FCF7E1">
					     <td width="70" style="font-size: 14px; color:#666666 ">留言者:<br/></td>
					     <td width="90"><font style="font-size: 14px;color:#666666">${message.pname }</font></td>
					     <td width="340" colspan="2" style="font-size: 14px;color:#666666">留言时间:<fmt:formatDate value="${message.matime}" pattern="MM-dd HH:mm"/><br></td>
					     <td width="160" style="font-size: 14px;color:#666666">回复时间:<fmt:formatDate value="${message.mptime}" pattern="MM-dd HH:mm"/><br /></td>
					   </tr>
					   <tr height="50px">
					     <td colspan="5" style="font-size: 14px;" width="680">
					      <font color="#666666">留言内容:&nbsp;&nbsp;</font>${message.mcontent }
					     </td>
					   </tr>
					   <tr height="60">
					     <td style="font-size: 14px;color:#666666;">管理回复:</td>
					     <td colspan="3" align="left"  valign="top" style="border: 1px solid #F6D7DB;">
	                        ${message.recontent }
					     </td>
					     <td style="font-size: 14px;">&nbsp;</td>
					   </tr>
					 </table>
					  <hr />
					</c:forEach>
				</c:if>
				<c:if test="${empty pm.datas}">
					<table width="100%" border="0" cellspacing="0"
					cellpadding="0">
					  <tr>
					   <td align="center" style="color: red">【没有找到相关的留言信息记录】</td>
					  </tr>
					</table>
				</c:if>
				 <table width="100%" border="0" cellspacing="0"
					cellpadding="0" style="font-size: 12px;">
					 <tr><td align="right">
				    【 <pg:pager url="${basePath}messages.html" items="${pm.total}"
				export="currentPageNumber=pageNumber" maxPageItems="5"
				maxIndexPages="5">
				<pg:first>
					<a href="${pageUrl}">首页</a>
				</pg:first>  
	                                     [第${currentPageNumber}页]/[共${pm.total}条记录]
	                                    <pg:prev>
					<a href="${pageUrl }">上一页</a>
				</pg:prev>
				<pg:pages>
					<c:choose>
						<c:when test="${currentPageNumber eq pageNumber}">
							<font color="red">${pageNumber }</font>
						</c:when>
						<c:otherwise>
							<a href="${pageUrl }">${pageNumber }</a>
						</c:otherwise>
					</c:choose>
				</pg:pages>
				<pg:next>
					<a href="${pageUrl }">下一页</a>
				</pg:next>
				<pg:last>
					<a href="${pageUrl }">尾页</a>
				</pg:last>
			</pg:pager> 】
			   </td>
			   </tr>		   
			</table>
			<table style="font-size: 13px;line-height: 150%">
			  <tr>
			    <td colspan="5">发表留言(为防范非法、反动的内容，信息需审核后才能显示)</td>
			   </tr>
			   <tr>
			    <td colspan="5">
			     <form name="form1" method="post" action="message!addMessage.action" onsubmit="return fsubmit(this);" style="line-height: 150%;font-size: 13px;">
			      <c:choose>
			       <c:when test="${'0' eq role}">
			        &nbsp;&nbsp;
			         你的姓名:<input type="text" name="message.pname" id="uname" size="10" value="${manager.realname }"/>
			         联系电话:<input type="text" name="message.telphone" id="telphone" value="${manager.linktel }"/>
			         电子邮箱:<input type="text" name="message.email" id="email" size="25" value="${manager.remark1 }"/>
			       </c:when>
			       <c:otherwise>
			        &nbsp;&nbsp;
				    你的姓名:<input type="text" name="message.pname" id="uname" size="10" value="游客"/>
				    联系电话:<input type="text" name="message.telphone" id="telphone"/>
			         电子邮箱:<input type="text" name="message.email" id="email"/>
			       </c:otherwise>
			      </c:choose>
			        <div style="height: 15px;"></div>
					  <script type="text/javascript" src="<%=basePath %>editor/mEditor.js"></script>
					  <script type="text/javascript">
						/*
						// 编辑区id，语言(zh，en)，编辑区宽度，字体，字号，颜色，图片提示，链接提示，填充内容(可为''或null或胜略)
						// ff，fz，fc，tip11，tip12 用于显示，区分不同的语言
						new mEditor(id, lang, width, fn, fz, fc, tip11, tip12, fill);
						
						mEditor.getCont()	// 取得内容
						mEditor.selectAll()	// 选中所有内容
						mEditor.clear()		// 清空
						mEditor.focus()		// 聚焦
						mEditor.insert(cont, clear)	// 插入html代码（JS？），clear：是否清空内容
						 */
						
						var me = createME('brief', 550, '');
						me.insert('留言内容', true);
						me.mv2begin();
						me.focus();
					 </script>
		             <input type="hidden" name="message.mcontent" id="showhtml"/>
					 <hr/>&nbsp;&nbsp;
					<input type="submit" id="submit" value="留言给我们"/>
					 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
					<input type="reset" value="清空留言"/>
					</form>
			    </td>
			   </tr>		
			</table>
       </div>
       <div>声明:未经<strong>南充兼职网</strong>同意，不得转载。</div>
  </div>
    <!-- ------------主体左边 left 结束--------------->
  <div class="right">
  <div class="er block">
      <div class="er_top title_a">
       <font color="#FD7D01" size="2" style="font-weight: bold">留言说明</font> 
      </div>
      <div class="er_list" style="height: 100px;">
        <table style="font-size: 12px;font-weight: bold;color: #FD7D01;">
         <tr>
           <td height="25">&nbsp;&nbsp;1、请遵守互联网信息发布公约</td>
         </tr>
         <tr>
           <td height="25">&nbsp;&nbsp;2、请勿发表诽谤他人的言论</td>
         </tr>
         <tr>
           <td height="25">&nbsp;&nbsp;3、留言将经过兼职网回复后显示</td>
         </tr>
         <tr>
           <td height="25">&nbsp;&nbsp;4、留言时请留下你的真实信息</td>
         </tr>
        </table>
      </div>
    </div> 
  <div class="er block">
     <img src="<%=basePath %>web/images_xu/companypic.gif" width="238px" height="130px"/>
  </div> 
  <div class="er block">
      <div class="er_top title_a">
       <font color="#FD7D01" size="2" style="font-weight: bold">新加入会员</font> 
      </div>
      <div class="er_list">
        <marquee direction="up" align="left" vspace="3" height="97%" onmousemove="this.stop()" onmouseout="this.start()" scrollamount="3">
        <ul class="list list_b2" style="height: 250px;">
        <c:if test="${!empty memberlist}">
		<c:forEach items="${memberlist}" var="member">
		   <li><a href="<%=basePath%>home/${member.mid }.html" target="_blank">
		   <table>
		    <tr>
		     <td width="300">${member.nickname }</td>
		     <td width="200"><fmt:formatDate value="${member.stime}" pattern="yyyy-MM-dd"/></td>
		    </tr>
		   </table>
		   </a>
		   </li>
		 </c:forEach>
		</c:if>
		<c:if test="${empty memberlist}">
		   <li>
				没有找到相应的记录
		   </li>
		</c:if>				
       </ul>
       </marquee>
      </div>
    </div> 
    <!--二级栏目结束-->
  </div>
    <!-- ------------主体右边 right 结束--------------->
</div>
<!-- ------------主体list_main结束--------------->
<div class="head"><iframe src="<%=basePath %>web/footer.html" width="1000px"  height="100px"  frameborder="0" scrolling="no" ></iframe></div>
</body>
</html>
